FROM ubuntu:20.04

RUN echo "deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse" > /etc/apt/sources.list
RUN echo "deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse" >> /etc/apt/sources.list
RUN echo "deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse" >> /etc/apt/sources.list

RUN cat /etc/apt/sources.list

#如果你的系统是 64 位架构，但尚未安装 32 位支持，你需要先添加多架构支持。运行以下命令来安装
RUN  dpkg --add-architecture i386
RUN apt update

RUN apt install -y wget 

RUN mkdir -pm755 /etc/apt/keyrings

WORKDIR /xfx
COPY ./xfx /xfx

ENV https_proxy=http://192.168.1.140:7890
ENV http_proxy=http://192.168.1.140:7890
ENV all_proxy=socks5://192.168.1.140:7890

RUN  wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

RUN  wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources


RUN  apt update
#RUN apt install aptitude   -y
RUN  ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime



#RUN  aptitude install winehq-stable -y
RUN  apt install --install-recommends -o Acquire::http::proxy="http://192.168.1.140:7890/"  -y winehq-stable
RUN apt install -y dbus-x11 packagekit-gtk3-module  fonts-wqy-microhei

RUN apt install -y language-pack-en language-pack-zh-hant

RUN locale-gen zh_CN.UTF-8
ENV LC_CTYPE=zh_CN.UTF-8
ENV LANG="zh_CN.UTF-8"

COPY ./Fonts /root/.wine/drive_c/windows/Fonts


WORKDIR /xfx/计价程序/
CMD ["wine","zj2016.exe"]
